﻿<form id="sampleform" method="post" action="">
	<fieldset>
		<legend>添加新任务</legend>
		<p>
			<label class="required" for="producttitle">任务名称</label><br/>
			<input type="text" id="producttitle" class="half title" value="{$vt[name]}" name="title"/>
			<select id="type" class="half title" name="type" style="display:inline;width:20%;">
				<option value="1" {eval if($vt['type'] == 1) echo "selected"; }>主题帖任务</option>
				<option value="2" {eval if($vt['type'] == 2) echo "selected"; }>回复贴任务</option>
			</select>
		</p>
		<p>
			<label for="productdesc">详细内容</label><br/>
			<textarea id="productdesc" class="large full" name="desc">{$vt[description]}</textarea>
		</p>
		<div class="clearfix leading">
			<div class="column width3 first">
				<p>
					<label for="price">价钱:</label><br>
					<input type="text" id="price" class="half title" value="{$vt[prize]}" name="prize">
					<small>（单位为角/个帖子）</small>
				</p>
				<p>
					<label for="disorder">展示顺序:</label><br>
					<input type="text" id="disorder" class="half title" value="{$vt[displayorder]}" name="disorder">
					<small>（只能为数字，数字越大排列越后）</small>
				</p>
			</div>
			<div class="column width3">
				<p>
					<label for="limit">人数限制:</label><br>
					<input type="text" id="limit" class="half title" value="{$vt[tasklimits]}" name="limit">
				</p>
				<p>
					<label for="exid">帖子id:</label><br>
					<input type="text" id="exid" class="half title" value="{$vt[exided]}" name="exid">
					<small>（只有为回复贴时需要填写，为当前任务帖子的id号）</small>
				</p>
				<p>
					<label for="available">是否可用</label><br/>
					<select id="available" class="half" name="available">
						<option value="1" {eval if($vt['available'] == 1) echo "selected";}>可用</option>
						<option value="0" {eval if($vt['available'] == 0 && isset($vt['available'])) echo "selected";}>暂不可用</option>
					</select>
				</p>
			</div>
		</div>
		<p class="box"><input type="submit" class="btn btn-green big" value="保存"/> or <a href="#">取消</a></p>
	</fieldset>
</form>